<?php
/**
 *
 * User: 16
 * Date: 2018/2/8
 * Time: 11:27
 */
Route::group('admin',[
    'user'   => ['admin/User/index', ['method' => 'get']],

    ':type'   => ['admin/Article/index', ['method' => 'get'],['type'=>'(dailyLife|technology)?']],
    'addArticle' => ['admin/Article/addArt'],
    'editArt/:id' => ['admin/Article/editArt'],

    'label' => ['admin/Article/label'],
    'addLabel' => ['admin/Article/addLabel'],
    'editLabel/:id' => ['admin/Article/editLabel'],

    'friendLink' => ['admin/FriendLink/index'],
    'addFriendLink' => ['admin/FriendLink/add'],
    'editFriendLink/:id' => ['admin/FriendLink/edit'],

    'notice' => ['admin/Notice/index'],
    'addNotice' => ['admin/Notice/add'],
    'editNotice/:id' => ['admin/Notice/edit'],

    'timeLine' => ['admin/TimeLine/index'],
    'addTimeLine' => ['admin/TimeLine/add'],
    'editTimeLine/:id' => ['admin/TimeLine/edit'],

    'userConfig' => ['admin/Config/userConfig'],
    'webConfig' => ['admin/Config/webConfig'],
]);


